Skip to content

Suppress warning about duplicate write to zip #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Suppress warning about duplicate write to zip #130

wants to merge 2 commits into from

Conversation

jakirkham
Copy link
Member

Fixes https://github.com/alimanfoo/zarr/issues/129

Every time we write data under the same name as an existing dataset, Python's ZipFile will raise a UserWarning. As they are pretty noisy and there is nothing we can actively do to prevent them, just suppress the warnings to avoid the noise.

When writing to a ZipFile, if a duplicate value is provided, this
results in a UserWarning being raised. This test fails if that
UserWarning escapes.
Every time we write data under the same name as an existing dataset,
Python's `ZipFile` will raise a `UserWarning`. As they are pretty noisy
and there is nothing we can actively do to prevent them, just suppress
the warnings to avoid the noise.
@jakirkham jakirkham closed this Feb 27, 2017
@jakirkham jakirkham deleted the suppress_zip_warning branch February 27, 2017 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant